package org.link.bean;

/**
 * 
 * project_name:hibernate_manytoone
 * package_name:org.link.bean
 * file_name:Person.java
 * @author Link
 * create_date:2015年12月14日 下午2:05:01
 * modified_date:
 * description:person实体类
 *
 */
public class Person {

	private int pid;
	private String pname;
	private Card card;
	public Person() {
		super();
	}
	public Person(int pid, String pname, Card card) {
		super();
		this.pid = pid;
		this.pname = pname;
		this.card = card;
	}
	public int getPid() {
		return pid;
	}
	public void setPid(int pid) {
		this.pid = pid;
	}
	public String getPname() {
		return pname;
	}
	public void setPname(String pname) {
		this.pname = pname;
	}
	public Card getCard() {
		return card;
	}
	public void setCard(Card card) {
		this.card = card;
	}
	@Override
	public String toString() {
		return "Person [pid=" + pid + ", pname=" + pname + ", card=" + card + "]";
	}
	
}
